﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HZ.Supervise.Model
{
    /// <summary>
    /// 实体类
    /// </summary>
    [Serializable()]
    [HZ.Table(TableName = "TB_PrescriptionDetail")]
    public class PrescriptionDetail : IComparable<PrescriptionDetail>
    {
        /// <summary>
        /// 
        /// </summary>
        [HZ.Column(PrimaryKey = true)]
        public string PrescriptionDetailID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrescriptionID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string ProcureCatalogID { get; set; }
        /// <summary>
        /// 通用名
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        /// 拼音码
        /// </summary>
        public string PinyinCode { get; set; }
        /// <summary>
        /// 商品名
        /// </summary>
        public string PgoodsName { get; set; }
        /// <summary>
        /// 剂型
        /// </summary>
        public string PmedicineModelname { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string Poutlookc { get; set; }
        /// <summary>
        /// 材质
        /// </summary>
        public string Pmaterial { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string Punit { get; set; }
        /// <summary>
        /// 系数
        /// </summary>
        public int? Pfactor { get; set; }
        /// <summary>
        /// 药品类别
        /// </summary>
        public int? PsortSource { get; set; }
        /// <summary>
        /// 生产企业ID
        /// </summary>
        public string Pcompanyid_sc { get; set; }
        /// <summary>
        /// 生产企业名称
        /// </summary>
        public string Pcompanyname_sc { get; set; }
        /// <summary>
        /// 中标价格
        /// </summary>
        public decimal? Pbidprice { get; set; }
        /// <summary>
        /// 零售价
        /// </summary>
        public decimal? PimitPrice { get; set; }
        /// <summary>
        /// 处方单价格
        /// </summary>
        public decimal? Price { get; set; }
        /// <summary>
        /// 处方数量
        /// </summary>
        public int? Pcount { get; set; }
        /// <summary>
        /// 处方单总金额
        /// </summary>
        public decimal? Pamount { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Premark { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public System.DateTime? Paddtime { get; set; }
        /// <summary>
        /// 批号
        /// </summary>
        public string BatchRecordID
        {
            get;
            set;
        }
        /// <summary>
        /// 有效期
        /// </summary>
        public DateTime? PeriodTime
        {
            get;
            set;
        }
        /// <summary>
        /// 应补贴金额
        /// </summary>
        public decimal? PSubsidiesAmount { get; set; }
        /// <summary>
        /// 已补贴金额
        /// </summary>
        public decimal? PSbsidyAmount { get; set; }
        public double? Ratio { get; set; }
        #region IComparable<PrescriptionDetail> 成员

        int IComparable<PrescriptionDetail>.CompareTo(PrescriptionDetail other)
        {
            return string.Compare(ProcureCatalogID, other.ProcureCatalogID, true);
        }

        #endregion
    }
}
